package link.anyauto.weclass.demos.actionbar;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;

import link.anyauto.weclass.R;
import link.anyauto.weclass.base.BaseAct;
import link.anyauto.weclass.databinding.DemoToolbarBinding;

/**
 * Created by discotek on 17-2-10.
 */

public class ActionBarActivity extends BaseAct {

    ActionBarVM vm;
    DemoToolbarBinding binding;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        vm = new ActionBarVM(this);
        super.onCreate(savedInstanceState);
        binding = DataBindingUtil.setContentView(this, R.layout.demo_toolbar);
        binding.setVm(vm);
    }

    @Override
    public ActionBarVM getVm() {
        return vm;
    }

    @Override
    public DemoToolbarBinding getBinding() {
        return binding;
    }
}
